---
title: MLX
---

>[MLX](https://ml-explore.github.io/mlx/build/html/index.html) is a `NumPy`-like array framework
> designed for efficient and flexible machine learning on `Apple` silicon,
> brought to you by `Apple machine learning research`.


## Installation and Setup

Install several Python packages:

<CodeGroup>
```bash pip
pip install mlx-lm transformers huggingface_hub
```

```bash uv
uv add mlx-lm transformers huggingface_hub
```
</CodeGroup>


## Chat models


See a [usage example](/oss/integrations/chat/mlx).

```python
from langchain_community.chat_models.mlx import ChatMLX
```

## LLMs

### MLX Local Pipelines

See a [usage example](/oss/integrations/llms/mlx_pipelines).

```python
from langchain_community.llms.mlx_pipeline import MLXPipeline
```
